export type Refs = {};
export default abstract class<M, INP> extends YvanUI.BaseModule<M, Refs, INP> {
  $refs!: Refs;

  viewResolver() {
    return {
      view: "form",
      rows: [
        {
          cols: [
            {
              view: 'button',
              text: "上传事件",
              icon: "fa fa-bars",
              onClick: {
                type: "function",
                bind: "click1",
              },
            },
            {
              view: 'button',
              text: "预览事件",
              icon: "fa fa-bars",
              onClick: {
                type: "function",
                bind: "click2",
              },
            },
            {
              view: 'uploader',
              name: "files",
              // width: 300,
              upload: "/upload",
              accept: "image/png, image/gif, image/jpg",
              value: "上传",
              onFileUpload: {
                type: "function",
                bind: "onFileUpload",
              },
              onFileUploadError: {
                type: "function",
                bind: "onFileUploadError",
              },
            },
            // {
            //   rows: [
            //     {
            //       accept: "image/png, image/gif, image/jpg",
            //       link: "uploaderList1596448041531",
            //       name: "files",
            //       upload: "/upload",
            //       value: "上传图片",
            //       view: "uploader",
            //     },
            //     {
            //       height: 220,
            //       id: "uploaderList1596448041531",
            //       type: "uploader",
            //       view: "list",
            //     }
            //   ]
            // },
            {}
          ]
        },
        {}
      ],
    };
  }
}
